package opdracht3;

public class RBTTest {

	private RedBlackTree<Integer, String> rbt;

	public static void main(String[] arg) {
		int[] array = { 13, 8, 17, 1, 11, 15, 25, 6, 22, 27 };
		new RBTTest(array);
	}

	public RBTTest(int[] array) {
		rbt = new RedBlackTree<Integer, String>();
		for (int i = 0; i < array.length; i++) {
			rbt.insert(array[i], "INSERT " + i);
		}

		System.out.println(rbt.search(15));

		System.out.println(rbt.delete(15));
		System.out.println(rbt.search(15));

	}

}
